#pragma once
#include "mainfrm.h"
#include "SubToolView.h"
#include "SubViewButton.h"
#include "SubViewCapture.h"
#include "SplitterWndEx.h"
#include "ViewSubStatic.h"

class CSubWindow : public CMainFrame
{
public:
	CSubWindow(void);
	~CSubWindow(void);

public:
	void InitWindowFinished();
	BOOL m_bInit ;
	void	LoadBugImage();
public:
	
	CSplitterWndExx		m_wndSplitter;
	CSplitterWndExx		m_wndSplitter2;

	CSplitterWndExx     m_wndSplitter3 ;
	CRulerSplitterWnd   m_DynamicRulers; 
	CRulerSplitterWnd   m_StaticRulers ;

	CSubToolView*		m_pToolView     ;
	CSubViewButton*		m_pViewButton	;

	CSubViewCapture*    m_pViewDynamic  ;
	CViewSubStatic*     m_pViewStatic   ;

public:
	int g_nImageViewMode;

public:
	void ShowToolView(BOOL bShow = TRUE);

public:
	void SetShowMode(int nMode = eShowDynamic);
	void ShowPanelView();


protected:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);



public:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
};
